import logging
from op_drf.dj_utils import create_by_serializer
from op_drf.serializers import CustomModelSerializer, BaseSerializer
from rest_framework import serializers
from apps.TabletInfo.models import (
TabletInfo
)
class ReadTabletinfoSerializer(BaseSerializer):

    class Meta:
        model = TabletInfo
        # fields = "__all__"
        fields = ["id","tblt_cd","tblt_nm","tblt_unit"]


class WriteTabletinfoSerializer(BaseSerializer):


    def update(self, instance, validated_data):
        return super().update(instance, validated_data)

    class Meta:
        model = TabletInfo
        fields = "__all__"
        # fields = ["id","tblt_cd","tblt_nm","tblt_unit"]